﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SoccerSimulator5000
{
    public class CommentaryRow
    {
        public string comment { get; set; }
        public int minute { get; set; }
        public System.Drawing.Rectangle rectangle = new System.Drawing.Rectangle();

        public CommentaryRow()
        {
            comment = "";
            minute = 0;
        }

        public CommentaryRow(string comment)//, int minute)//, System.Drawing.Point location, System.Drawing.Size size)
        {
            this.comment = comment;
            //this.minute = minute;

            //rectangle.Location = location;
            //rectangle.Size = size;

        }

        public void Draw( int x, int y, System.Drawing.Graphics g )
        {
            System.Drawing.Font theFont = new System.Drawing.Font("Monospac821 BT", 12);

            g.FillRectangle(System.Drawing.Brushes.CornflowerBlue, rectangle);
            g.DrawString(minute.ToString(), theFont, System.Drawing.Brushes.Black, rectangle.Location.X + 5, rectangle.Location.Y + 2);
            g.DrawString(comment, theFont, System.Drawing.Brushes.Black, rectangle.Location.X+10, rectangle.Location.Y+2);
        }
    }
}
